package com.toKnow.service;

import com.toKnow.model.entity.*;
import com.toKnow.model.vo.RestrictionVo;

import java.util.List;

public interface SourceService {
    public Source getSource(Integer id);
    public Boolean downloadSource(Integer userId,Integer sourceId);
    public Boolean buySource(Integer userId,Integer sourceId);
    public Boolean changeLikeSource(Integer userId,Integer sourceId);
    public Boolean changeCollectSource(Integer userId,Integer sourceId);
    public Boolean isCollectSource(Integer userId,Integer sourceId);
    public Boolean isLikeSource(Integer userId,Integer sourceId);
    public Boolean isBuySource(Integer userId,Integer sourceId);
    public Boolean isDownloadSource(Integer userId,Integer sourceId);
    public List<Source> searchSource(Integer uid,RestrictionVo restrictionVo);
//    public Boolean changeCollectSource(Integer userId,Integer SourceId);
//    public List<Integer> searchSourceId()
    public List<SourceComment> getComment(Integer sourceId, Integer page);
    public List<SourceAnswer> getAnswer(Integer commentId, Integer page);

    public List<Source> getDraftSource(Integer uid);
    public List<Source> getCheckingSource(Integer uid);
    public Source selectSourceDraftById(Integer uid, Integer sid);
}
